/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 子订单的增删改查Entity
 * @author 胡善军
 * @version 2019-05-22
 */
public class Orderson extends DataEntity<Orderson> {
	
	private static final long serialVersionUID = 1L;
	private String productNum;		// 商品数量
	private String pId;		// 商品ID
	private String productPrice;		// 商品价格
	private String orderId;		// 订单ID

	private  Product product;
	public Orderson() {
		super();
	}

	public Orderson(String id){
		super(id);
	}

	@Length(min=0, max=255, message="商品数量长度必须介于 0 和 255 之间")
	public String getProductNum() {
		return productNum;
	}

	public void setProductNum(String productNum) {
		this.productNum = productNum;
	}
	
	@Length(min=0, max=64, message="商品ID长度必须介于 0 和 64 之间")
	public String getPId() {
		return pId;
	}

	public void setPId(String pId) {
		this.pId = pId;
	}
	
	@Length(min=0, max=64, message="商品价格长度必须介于 0 和 64 之间")
	public String getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(String productPrice) {
		this.productPrice = productPrice;
	}

	@Length(min=0, max=64, message="订单ID长度必须介于 0 和 64 之间")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
}